﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum Npctype
    {
        任务,
        商贩,
        铁匠
    }
    abstract class Npc
    {
        
        public string name { get; set; }
        public Npctype type { get; set; }
        public Npc() { }
        public Npc(string name) {
            this.name = name;

         }
        public abstract void speak();
    }
}
